package com.tju.resource.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tju.resource.model.TbCommand;
import com.tju.resource.model.TbMaterial;
import com.tju.resource.model.TbOrdMatl;
import com.tju.resource.model.TbOrder;
import com.tju.resource.tool.tool.ClientParameters;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface TbCommandMapper extends BaseMapper<TbCommand> {
    //List<TbCommand> getTbCommandList(@Param("orderNumber") String orderNumber,@Param("prodId") Long prodId);

    IPage<TbCommand> selectCommandList(Page<TbCommand> page, @Param("pa") Map<String, String> pa);

    TbCommand getOrder(@Param("orderNumber") String orderNumber);

    List<TbOrder> getOrderList(@Param("id") Long id, @Param("orderNumber") String orderNumber);

    List<TbMaterial> getListMaterial(@Param("id") Long id, @Param("matlNumber") String matlNumber);
}